// Copyright (C) 2010 Razvan Constantin <razvan.constantin@rconst.net>
//
// This file is part of FileBow.
//
// FileBow is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// FileBow is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with FileBow.  If not, see <http://www.gnu.org/licenses/>.
//
// Declaration of TestDrive.

#ifndef TESTING_TEST_DRIVE_H_
#define TESTING_TEST_DRIVE_H_

#include <string>

namespace filebow {
namespace testing {

class TestDrive {
 public:
  // Constructor. Creates files and directories.
  TestDrive();
  // Destructor. Cleanup everything.
  ~TestDrive();

  // Total number of files in test drive.
  public: int size() const;

  // Base path for test drive.
  public: const std::string& path() const { return mPath; }

 private:
  // Deletes the test drive content on disk.
  void SafeRemove();

  // Base path.
  std::string mPath;
};

}  // namespace testing
}  // namespace filebow

#endif  // TESTING_TEST_DRIVE_H_
